package com.zwj.vo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@TableName(value = "operation_log")
@Data
@ToString(callSuper = true)
public class OperationLog {

    @ApiModelProperty(value = "删除人")
    @TableField(value = "delete_by")
    private String deleteBy;

    @ApiModelProperty(value = "花费时间")
    @TableField(value = "cost_time")
    private Integer costTime;

    @ApiModelProperty(value = "ip")
    @TableField(value = "ip")
    private String ip;

    @ApiModelProperty(value = "日志描述")
    @TableField(value = "description")
    private String description;

    @ApiModelProperty(value = "请求参数")
    @TableField(value = "request_param")
    private String requestParam;

    @ApiModelProperty(value = "请求json数据")
    @TableField(value = "request_json")
    private String requestJson;

    @ApiModelProperty(value = "请求类型")
    @TableField(value = "request_type")
    private String requestType;

    @ApiModelProperty(value = "请求路径")
    @TableField(value = "request_url")
    private String requestUrl;

    @ApiModelProperty(value = "请求用户")
    @TableField(value = "username")
    private String username;

    @ApiModelProperty(value = "操作类型")
    @TableField(value = "operation_type")
    private String operationType;

    @ApiModelProperty(value = "接口返回值")
    @TableField(value = "return_value")
    private String returnValue;

    @ApiModelProperty(value = "操作状态")
    @TableField(value = "operation_status")
    private String operationStatus;

    @ApiModelProperty(value = "异常信息")
    @TableField(value = "exception_message")
    private String exceptionMessage;
}
